package cn.edu.imau.zy.common.core.entity.system;

import cn.edu.imau.zy.common.annotation.Excel;
import cn.edu.imau.zy.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

//import javax.persistence.Id;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 任务详情对象 sys_sign_detail
 * 
 * @author wyz
 * @date 2020-07-07
 */
@Data
@ToString
public class SysSignDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
//    @Id
    @TableId
    private String id;

    /** 任务ID */
    private String signJobId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 签到时间 */
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signTime;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private Long status;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;
}
